﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace GroceryPriceBook.Core.ViewModel
{
	public class ProductQuantityUnit
	{
		public ProductQuantityUnit()
		{
			Products = new List<Product>();
		}

		public System.Guid Id { get; set; }

		[Required(ErrorMessage = "Required")]
		[StringLength(50)]
		public string Name { get; set; }

		public List<Product> Products { get; set; }
	}
}
